﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SafePublishCount.aspx.cs" Inherits="PraisePublish_SafePublishCount" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>河南煤化鹤煤集团安全档案管理系统</title>
        <LINK href="../css/public.css" type="text/css" rel="stylesheet">
         <LINK href="../css/style_oa_30.css" type="text/css" rel="stylesheet">
  <script src="../public/public.js" type="text/javascript"></script>
   <script src="../_js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
   <script language="javascript">
    var loc_x;
    function openunit(bumenid, starttime, endtime) {

        var num = Math.random();
        loc_x = (screen.availWidth - 880) / 2;
        window.open("SafePublishList.aspx?bmid=" + bumenid + "&islook=1&starttime=" + starttime + "&endtime=" + endtime, "_blank", "height=660, width=880,toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no,top=0,left=" + loc_x + "")
    }

</script>
</head>
<body  bgcolor="#E7E7E7">
    <form id="form1" runat="server">

 
  <!--#include file="../public/pleasewait.htm"-->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="100%" height="3" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td></td>
        </tr>
      </table>
      <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="35">
          <div id="printshow1"><table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="1" ></td>
                <td valign="top"> 
                <table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td width="3%"><img src="../images/top_3.gif" ></td>
                      <td width="81%" valign="bottom"><a href="../main_d.aspx" class="line_b" >工作台</a> >> 惩罚统计</td>
                      <td width="16%">&nbsp;</td>
                    </tr>
                  </table>
                  <table width="100%" height="6" border="0" cellpadding="0" cellspacing="0" background="../images/lingbg.jpg">
                    <tr> 
                      <td></td>
                    </tr>
                  </table></td>
                <td width="1" ></td>
              </tr>
            </table>
            </div></td>
        </tr>
      </table>
      <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="35">
          <table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="1" ></td>
                <td valign="top" style="height: 25px"> 
                   <div id="printshow2"> <table align="center" background="../images/bg0003.gif" border="0" cellpadding="0"
                        cellspacing="0" width="100%">
                        <tr>
                            <td style="height: 26px; width: 40%;">
                                
                            </td>
                              <td style="height: 26px" align="right" > 
                              <a href="#" onclick="window.open('../_framework/ToExcel.aspx?pageUrl=SafePublishCount.aspx')"><img border="0" src="../images/button_out.jpg" /></a>
                                  </td>
                        </tr>
                    </table>
                    </div>
                </td>
                <td width="1" ></td>
              </tr>
            </table><table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="1"></td>
                    <td valign="top">
                    	<table  cellSpacing="0" cellPadding="0" width="100%" border="0">
                    	<tr>
                    	<td>
                    	日期：<input isnull="false"  fieldtype="String"  name="text" runat="server" type="text" class="Wdate" id="txtStartTime" readonly="readonly" style="cursor:pointer; width:120px" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})" />
                                    至<input isnull="false"  fieldtype="String"  name="text" runat="server" type="text" class="Wdate" id="txtEndTime" readonly="readonly" style="cursor:pointer; width:120px" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})" />
                            <asp:CheckBox ID="chkAll" Checked="false" Text="显示全部" style="vertical-align:top" runat="server" />
                                    &nbsp;&nbsp;
                                    <asp:Button ID="btnSave" runat="server" Text="查 询" 
                                CssClass="button_blue" onclick="btnSave_Click"  
                                                />
                    	</td>
                    	</tr>
							<tr>
								<td vAlign="top">
                        <div id="Div1" class="mainDiv">
                            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="False" BackColor="#4D77B1" BorderColor="#4D77B1" BorderStyle="None"
                                BorderWidth="1px" CellPadding="3" CellSpacing="1" GridLines="None" 
                                OnRowDataBound="GridView1_RowDataBound" 
                                OnSorting="GridView1_Sorting" PageSize="12" Style="font-size: 12px" Width="100%" >
                                <PagerSettings Visible="False" />
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <Columns>
                                    <asp:TemplateField HeaderText="选择" Visible="false">
                                        <ItemStyle HorizontalAlign="Center" Wrap="True" Width="30px" />
                                        <HeaderStyle BackColor="#94C3CE" ForeColor="DarkSlateGray" HorizontalAlign="Center" Wrap="False" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckSelect" runat="server" />
                                            <asp:Label ID="LabVisible" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "id") %>'
                                                Visible="False" Width="0px"></asp:Label>
                                        </ItemTemplate>
                                        <FooterStyle Wrap="True" />
                                    </asp:TemplateField>
                                    
                                    <asp:TemplateField HeaderText="单位名称">
                                        <ItemStyle HorizontalAlign="left" Wrap="false" />
                                        <HeaderStyle BackColor="#94C3CE" ForeColor="DarkSlateGray" HorizontalAlign="Center" Wrap="False" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblCompany" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "单位名称") %>' Visible="true"></asp:Label>
                                             <asp:Label ID="lblID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ID") %>' Visible="false"></asp:Label>
                                            <asp:Label ID="lblChildID" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ChildID") %>' Visible="false"></asp:Label>
                                        </ItemTemplate>
                                        <FooterStyle Wrap="True" />
                                    </asp:TemplateField>
                                    

                                    

                                     <asp:TemplateField HeaderText="总数量" Visible="true">
                                         <ItemStyle HorizontalAlign="Center" Height="18px" />
                                        <HeaderStyle BackColor="#94C3CE" ForeColor="DarkSlateGray" HorizontalAlign="Center" Wrap="False" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblAllCount" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "事故总数量") %>'
                                                Visible="true" Width="0px"></asp:Label>
                                        </ItemTemplate>
                                        <FooterStyle Wrap="True" />
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle BackColor="#FBFCFE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" Wrap="False" />
                                <AlternatingRowStyle BackColor="#E6EDF7" />
                                     <EmptyDataTemplate>
                                    <div align=center><font color=white>无相关数据！</font></div>
                                </EmptyDataTemplate>
                            </asp:GridView>
                            &nbsp;</div>
                            </td>
							</tr>
						</table>
                    </td>
                    <td width="1" ></td>
                </tr>
            </table>
            
              
          </td>
        </tr>
      </table></td>
  </tr>
</table>
<script type="text/javascript">
	    parent.closeAlert('UploadChoose');
</script>
    </form>
</body>
</html>
